<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href=<?php echo base_url()."zy.css"; ?> />
<title>系统设置</title>
<script language="javascript"> 
function HandleFileNameChange(which)
{
	var idstr = "input" + which;

	if (!/\.(jpg)$/i.test(document.getElementById(idstr).value))
	{
		document.getElementById(idstr).value = "";
		alert("文件类型必须是jpg");
		return false;
	}
	
	return true;
}
</script> 
</head>
<body>
<center>
<?php
	$this->load->library('myphplib');
	myphplib::myheadlinks();
?>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<?php
$this->load->helper('url');
$url = base_url()."index.php/zy/systemsettingdone";
echo form_open_multipart($url, "name=\"form_systemsetting\" onsubmit=\"return check()\"");
?>
<table>
<tr>
<td>只打印处方：</td>
<td align="left">
<?php
echo '<input type="checkbox" name="only_prtprescribe"';
if (!strcmp($only_prtprescribe, "on"))
{
	echo 'checked';
}
echo '>';
?>
</td>
</tr>
<tr>
<td>多诊单条记录：</td>
<td align="left">
<?php
echo '<input type="checkbox" name="reexam_check"';
if (!strcmp($reexam_check, "on"))
{
	echo 'checked';
}
echo '>';
?>
</td>
</tr>
<tr>
<td>病例背景颜色：</td>
<td align="left">
<div id="container">
<script type="text/javascript" src=<?php echo base_url()."jquery.js"; ?> ></script>
<script type="text/javascript" src=<?php echo base_url()."jquery.colorpicker.js"; ?> ></script>
<?php

if (strcmp($table_bgcolor, "none"))
{
	echo '<input type="text" name="table_bgcolor" id="cp1"';
	echo ' value="'.$table_bgcolor.'"';
	echo ' style=color:'.$table_bgcolor; 
	echo '>';
}
else
{
	echo '<input type="text" name="table_bgcolor" id="cp1">';
}
?>
<script type="text/javascript">
    $(function(){
        $("#cp1").colorpicker({
            fillcolor:true
        });
    });
</script>
</div>
</td>
</tr>
<tr>
<td>
<input type="submit" value="确定" style="font-size: 15px" />
</td>
</tr>
</table>
</form>
<br />
<br />
<br />
<table>
</table>
</center>
</body>
</html>